#include<stdio.h>
int main()
{int a,b,c,n;
scanf ("%d",&n);
a=n/100;
b=n/10%10;
c=n%10;
if (n=a*a*a+b*b*b+c*c*c)
   printf("1");
  else
  printf("o");
return 0;
}
